read-write counter

读写计数器